
// load data
use data/main_file.dta, clear

// drop location duplicates
duplicates drop loc, force

// erase previous versions of table		
cap erase tabs/T01.tex
cap erase tabs/T01.txt

// run correlation analyses for different visit definitions
foreach i in visited local_visited wide_visited {
	reg `i' focal  baseline_ch								/// 
		log_den sh_urbano log_pov i.edo [w = log_pop], r 
			
	outreg2 using tabs/T01.tex, append 						///
			keep(focal baseline_ch							///
			log_den log_pov	promedio_de_edad sh_urbano) 	///
			addtext(State Fixed Effects, Yes)				
}
